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