public void UpdateTag(TagViewModel viewModel) { var tag = _unitOfWork.RecipeTags.Get(_ => _.Id == viewModel.Id); tag.IsCategory = viewModel.IsCategory; _unitOfWork.Commit(); }
public HttpResponseMessage Put(Guid id, TagViewModel viewModel) { _recipeService.UpdateTag(viewModel); return new HttpResponseMessage(HttpStatusCode.OK); }