public async Task <ActionResult> GetEmployees() { try { return(Ok(await departmentRepositry.GetAll())); } catch (Exception) { return(StatusCode(StatusCodes.Status500InternalServerError, "Error")); } }