예제 #1
0
        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);
        }
예제 #2
0
 public void AddSupportDays(SupportDays sd)
 {
     _context.SupportDays.Add(sd);
 }