public string Post([FromBody] FnctonArgument fnctonargument) { //Create db.FnctonArgument.Add(fnctonargument); db.SaveChanges(); return(JsonConvert.SerializeObject(fnctonargument)); }
public string Delete([FromBody] FnctonArgument fnctonargument) { db.FnctonArgument.Remove(fnctonargument); db.SaveChanges(); return(JsonConvert.SerializeObject("Ok")); }
public void Put(int id, [FromBody] FnctonArgument fnctonargument) { //Update db.FnctonArgument.Update(fnctonargument); db.SaveChanges(); }