Exemplo n.º 1
0
 public static CategoryDto createCategoryDTO(String CategoryId, String CategoryName, String CategoryDescription)
 {
     CategoryDto cat = new CategoryDto();
     cat.CategoryId = CategoryId;
     cat.CategoryName = CategoryName;
     cat.CategoryDescription = CategoryDescription;
     return cat;
 }
Exemplo n.º 2
0
 public static CategoryDto createCategoryDTO(Category obj)
 {
     CategoryDto cat = new CategoryDto();
     cat.CategoryId = obj.CategoryId;
     cat.CategoryName = obj.CategoryName;
     cat.CategoryDescription = obj.CategoryDescription;
     return cat;
 }