Exemplo n.º 1
0
        public void UpdateTag(TagViewModel viewModel)
        {
            var tag = _unitOfWork.RecipeTags.Get(_ => _.Id == viewModel.Id);
            tag.IsCategory = viewModel.IsCategory;

            _unitOfWork.Commit();
        }
Exemplo n.º 2
0
 public HttpResponseMessage Put(Guid id, TagViewModel viewModel)
 {
     _recipeService.UpdateTag(viewModel);
     return new HttpResponseMessage(HttpStatusCode.OK);
 }