|
|
@ -20,7 +20,7 @@ namespace API_LoL_Project.Mapper
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (dto == null)
|
|
|
|
if (dto == null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var message = string.Format("Champion with name = {} not found", dto.Name);
|
|
|
|
var message = string.Format("Champion with name = {} noddt found", dto.Name);
|
|
|
|
/*throw new HttpResponseException(Request.CreateErrorResponse(HttpStatusCode.NotFound, message));
|
|
|
|
/*throw new HttpResponseException(Request.CreateErrorResponse(HttpStatusCode.NotFound, message));
|
|
|
|
*/}
|
|
|
|
*/}
|
|
|
|
return new Champion(dto.Name);
|
|
|
|
return new Champion(dto.Name);
|
|
|
|