예제 #1
0
        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());
        }
예제 #2
0
        public async Task <bool> AddDepartment(ZabotaDepartment model)
        {
            await _departmentRepository.Add(model);

            return(true);
        }