예제 #1
0
        public Lectures Map(LecturesForm form)
        {
            string ss = Staticcl.S;
            var lec = new Lectures
            {
                Vtitle = form.Title,
                Vdescription = form.Description,
                Date = DateTime.Now,

                Vlocation = ss,
                Vstatus = 10
            };
            return lec;
        }
예제 #2
0
 public Lectures Map(int n, LecturesForm form, string cloc)
 {
     string ss = Staticcl.S;
     var lec = new Lectures();
     lec.Id = n;
     lec.Vtitle = form.Title;
     lec.Vdescription = form.Description;
     lec.Date = DateTime.Now;
     lec.Vstatus = form.Status;
     if (Staticcl.S == null)
     {
         lec.Vlocation = cloc;
     }
     else
     {
         lec.Vlocation = ss;
     }
     return lec;
 }