public static Category ParseCategory(MongoCategory category) { var result = new Category(); result.CategoryName = category.CategoryName; return result; }
public static MongoCategory ParseToMongoCategory(Category category) { var result = new MongoCategory(); result.CategoryId = category.CategoryId; result.CategoryName = category.CategoryName; return result; }