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; }
public static CategoryDto createCategoryDTO(Category obj) { CategoryDto cat = new CategoryDto(); cat.CategoryId = obj.CategoryId; cat.CategoryName = obj.CategoryName; cat.CategoryDescription = obj.CategoryDescription; return cat; }