private bool InsertNewEmailList(Guid id, string name, string email, Guid aid, string cnum)
 {
     try {
         var dtid = Guid.NewGuid();
         var time = DateTime.Now;
         DateTimeStorageService.Insert(dtid, id, aid, time, time, Guid.Parse("931b5cca-e652-49cf-bc6c-ed96cf053604"));
         EmailListService.Insert(id, name, email, dtid, cnum);
         return(true);
     } catch { return(false); }
 }
 public async Task <JsonResult> ELInsert()
 {
     try {
         var id    = Guid.Parse(Request.Form["id"]);
         var name  = Request.Form["name"];
         var email = Request.Form["email"];
         var dtid  = Guid.Parse(Request.Form["dtid"]);
         var cnum  = Request.Form["cnum"];
         if (EmailListService.Insert(id, name, email, dtid, cnum))
         {
             return(Success(id.ToString()));
         }
         return(Failed(MessageUtilityService.FailedInsert("Email")));
     } catch { return(Failed(MessageUtilityService.ServerError())); }
 }