public SupportDays FindSupportDaysByName(string supportDaysName) { SupportDays f1 = _context.SupportDays.Where(x => x.SupportDaysName.ToUpper().StartsWith(supportDaysName.ToUpper())).FirstOrDefault(); SupportDays f2 = (from cf in _context.SupportDays where cf.SupportDaysName.ToUpper().StartsWith(supportDaysName.ToUpper()) select cf).FirstOrDefault(); return(f2); }
public void AddSupportDays(SupportDays sd) { _context.SupportDays.Add(sd); }