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); } }
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); } }
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); } }