Example #1
0
 protected bool CreateChange()
 {
     if (!DataOk())
     {
         return(false);
     }
     if (tck == null)
     {
         tck = new Ticket();
         UnloadData(tck);
         ctx.Add(tck);
     }
     else
     {
         tck = CntAriCli.GetTicket(ticketId, ctx);
         UnloadData(tck);
     }
     ctx.SaveChanges();
     //
     CntAriCli.CheckConversionRequest(tck, ctx);
     return(true);
 }