public void StartAppraisalSeason(int?id)
        {
            AppraisalSeason appraisalSeason = GetAppraisalSeason(id);

            appraisalSeason.IsActive = true;
            _dbEntities.Entry(appraisalSeason).State = EntityState.Modified;
            _dbEntities.SaveChanges();
        }
        public bool DeleteAppraisalSeason(int appraisalSeasonId)
        {
            AppraisalSeason appraisalSeason = _dbEntities.AppraisalSeasons.Find(appraisalSeasonId);

            _dbEntities.AppraisalSeasons.Remove(appraisalSeason);
            _dbEntities.SaveChanges();
            return(true);
        }
 public AppraisalSeason EditAppraisalSeason(AppraisalSeason appraisalSeason)
 {
     _dbEntities.Entry(appraisalSeason).State = EntityState.Modified;
     _dbEntities.SaveChanges();
     return(appraisalSeason);
 }
 public bool CreateAppraisalSeason(AppraisalSeason appraisalSeason)
 {
     _dbEntities.AppraisalSeasons.Add(appraisalSeason);
     return(_dbEntities.SaveChanges() > 0);
 }