public Task Add(ZabotaDepartment model) { _appDBContext.Departments .Add(new Entities.Department { Id = model.Id, ShortName = model.ShortName, Description = model.Description, DepartmentPriceID = model.DepartmentPriceID }); return(_appDBContext.SaveChangesAsync()); }
public async Task <bool> AddDepartment(ZabotaDepartment model) { await _departmentRepository.Add(model); return(true); }