public async Task <bool> PutAsync([FromBody] DietTypeViewModel value, [FromRoute] Guid id)
 {
     value.Id = id;
     return(await Service.UpdateAsync(mapper.Map <IDietType>(value)));
 }
 public async Task <DietTypeViewModel> Post([FromBody] DietTypeViewModel value)
 {
     return(mapper.Map <DietTypeViewModel>(await Service.CreateAsync(mapper.Map <IDietType>(value))));
 }