예제 #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;
 }
예제 #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;
 }