Ejemplo n.º 1
0
 public string SelectEventTableWithConstrain(string jsonValue)
 {
     IEventTableModal eventtable = Serializer.GetDeserialized<EventTableModal>(jsonValue);
     EventAccessLayer al = new EventAccessLayer(eventtable);
     EventCollection result = al.SelectEventsWithConstrain(Constants.SP_SelectEventsConstrain);
     return Serializer.GetSerialized<EventCollection>(result);
 }
Ejemplo n.º 2
0
 public string DeleteEventTable(string jsonValue)
 {
     IEventTableModal modal = Serializer.GetDeserialized<EventTableModal>(jsonValue);
     EventAccessLayer al = new EventAccessLayer(modal);
     bool result=al.DeleteEvent(Constants.SP_DeleteEventTable);
     return result.ToString();
 }
Ejemplo n.º 3
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);
 }
Ejemplo n.º 4
0
 public string SelectEventTable()
 {
     EventAccessLayer al = new EventAccessLayer();
     EventCollection output = al.SelectEvents(Constants.SP_SelectEventTable);
     return Serializer.GetSerialized<EventCollection>(output);
 }