Exemplo n.º 1
0
 public string InsertEventTable(string jsonValue, string loginValues)
 {
     EventTableModal modal = Serializer.GetDeserialized<EventTableModal>(jsonValue);
     ILoginTableModal lTable = Serializer.GetDeserialized<LoginTableModal>(loginValues);
     modal.UpdateModal.CreatedById = modal.UpdateModal.LastModifiedId= lTable.Id;
     modal.UpdateModal.CreatedTime = modal.UpdateModal.LastModifiedTime= DateTime.Now;
     EventAccessLayer al = new EventAccessLayer(modal);
     int output = al.InsertEvents(Constants.SP_InsertEventTable);
     return Serializer.GetSerialized<int>(output);
 }