Esempio n. 1
0
 public int PutTabActions(int id, [FromBody] TabActions value)
 {
     try
     {
         EFTabActions ef_act = new EFTabActions(new EFDbContext());
         ef_act.Update(value);
         return(ef_act.Save());
     }
     catch (Exception e)
     {
         return(-1);
     }
 }
Esempio n. 2
0
 public int DeleteTabActions(int id)
 {
     try
     {
         EFTabActions ef_act = new EFTabActions(new EFDbContext());
         ef_act.Delete(id);
         return(ef_act.Save());
     }
     catch (Exception e)
     {
         return(-1);
     }
 }
Esempio n. 3
0
 public int PostTabActions([FromBody] TabActions value)
 {
     try
     {
         EFTabActions ef_act = new EFTabActions(new EFDbContext());
         ef_act.Add(value);
         return(ef_act.Save());
     }
     catch (Exception e)
     {
         return(-1);
     }
 }