public async Task <IHttpActionResult> GetDepartments()
        {
            try
            {
                var list = await _repository.Departments().ToListAsync();

                return(Ok(list));
            }
            catch (Exception ex)
            {
                return(InternalServerError(ex));
            }
        }