public IEnumerable <Appraisal> GetAppraisals(int reviewYear = 0)
        {
            var appraisals = appraisalsRepository.GetAll();

            if (reviewYear > 0)
            {
                appraisals = appraisals.Where(a => a.ReviewYear == reviewYear);
            }
            return(appraisals);
        }
        public async Task <IActionResult> AppraisalList()
        {
            try
            {
                var output = _appraisalRepository.GetAll();

                if (output.Count() > 0)
                {
                    return(Ok(output));
                }
                else
                {
                    return(Ok(new GenericResult {
                        Response = false, Message = "Appraisal record is empty"
                    }));
                }
            }
            catch (Exception e)
            {
                return(BadRequest(e));
            }
        }