Beispiel #1
0
 public ActionResult EventPrivacy(EventType et)
 {
     if (EventTypeRepo.GetAll().Find(a => a.EventTypeName == et.EventTypeName) == null)
     {
         EventTypeRepo.Insert(et);
     }
     return(RedirectToAction("EventPrivacy"));
 }
        public async Task EventTypeInsert()
        {
            var res = await _eventTypeRepository.Insert(new Backend.Dbo.Model.event_type());

            Assert.IsNotNull(res);
        }