private CategoryDO CreateCategory(ProjectDO project, string name) { var category1 = new CategoryDO { ProjectId = project.ProjectId, Name = name }; _categoryDao.Create(category1); return(category1); }
public CategoryDO CreateCategory(CategoryDO category) { return(categoryDAO.Create(category)); }