public async Task <ActionResult> GetDpartments()
 {
     try
     {
         return(Ok(await departmentRepo.GetDepartments()));
     }
     catch (Exception)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError, "Error retrieving data"));
     }
 }
        public IHttpActionResult GetDepartments()
        {
            var data = packingType.GetDepartments();

            return(Ok(data));
        }