コード例 #1
0
        public void UpdateTag(TagViewModel viewModel)
        {
            var tag = _unitOfWork.RecipeTags.Get(_ => _.Id == viewModel.Id);
            tag.IsCategory = viewModel.IsCategory;

            _unitOfWork.Commit();
        }
コード例 #2
0
 public HttpResponseMessage Put(Guid id, TagViewModel viewModel)
 {
     _recipeService.UpdateTag(viewModel);
     return new HttpResponseMessage(HttpStatusCode.OK);
 }