public IHttpActionResult GetDepartment(DepartmentRequestVM deptId)
        {
            Department department = db.Departments.Find(deptId.departmentid);

            if (department == null)
            {
                return(NotFound());
            }


            return(Ok(_modelFactory.Create(department)));
        }
        public IHttpActionResult DeleteDepartment(DepartmentRequestVM dept)
        {
            Department department = db.Departments.Find(dept.departmentid);

            if (department == null)
            {
                return(NotFound());
            }

            db.Departments.Remove(department);
            db.SaveChanges();

            return(Ok(department));
        }