示例#1
0
 public void DestroyCategory(CategoryViewModel viewModel)
 {
     _categoryDal.Destroy(ConvertViewModelToEntity(viewModel));
 }
示例#2
0
 private Category ConvertViewModelToEntity(CategoryViewModel viewModel)
 {
     return new Category
     {
         Name = viewModel.Name
     };
 }