Ejemplo n.º 1
0
 public void BindData()
 {
     if (_slotId.HasValue)
     {
         _presenter.OnViewLoaded();
     }
     SlotDetails.DataBind();
 }
Ejemplo n.º 2
0
 public SlotDetails Post([FromBody] SlotDetails slot)
 {
     //  DateTime dateForDonating = DateTime.Now;
     return(obj.SlotDetails.FromSql("slotvalidation '" + slot.Hospital + "'" + "," + "'" + slot.City + "'" + "," + "'" + slot.DateForDonating + "'" + "," + "'" + slot.TimeForDonating + "'").SingleOrDefault());
 }
Ejemplo n.º 3
0
 public void PostDemo(int userId, [FromBody] SlotDetails details)
 {
     obj.Database.ExecuteSqlCommand("slotpost " + userId + "," + "'" + details.Hospital + "'" + "," + "'" + details.City + "'" + "," + "'" + details.DateForDonating + "'" + "," + "'" + details.TimeForDonating + "'");
 }