public AnnualLeaveYear Update(AnnualLeaveYear model)
        {
            _db.AnnualLeaveYears.Update(model);

            return(GetAnnualLeaveYear(model.Year));
        }
 public void Delete(AnnualLeaveYear model)
 {
     _db.AnnualLeaveYears.Remove(model);
 }
        public AnnualLeaveYear Create(AnnualLeaveYear model)
        {
            _db.AnnualLeaveYears.Add(model);

            return(GetAnnualLeaveYear(model.Year));
        }