public EntitiesStandart.Categories CreateCategory(EntitiesStandart.Categories newCategory) { var BL = new BLL.Categories(); var NewCategory = BL.Create(newCategory); return(NewCategory); }
public EntitiesStandart.Categories Create(EntitiesStandart.Categories newCategories) { using (var r = RepositoryFactory.CreateRepository()) { newCategories = r.Create(newCategories); } return(newCategories); }