Example #1
0
        public async Task <ActionResult <Customer> > AddDepartment(Department department)
        {
            if (ModelState.IsValid)
            {
                await departmentRepo.addDepartment(department);

                return(StatusCode(200));
            }

            return(BadRequest());
        }