public ActionResult Update(Requist r) { Req.Update(r); return(Ok()); }
public ActionResult Delete(Requist r) { Req.Delete(r); return(Ok()); }
public ActionResult <Requist> Add(Requist r) { Req.Add(r); return(Created("Created successfully", r)); }
public bool Delete(Requist r) { ctx.Requist.Remove(r); return(ctx.SaveChanges() > 0); }
public bool Update(Requist r) { ctx.Requist.Attach(r); ctx.Entry(r).State = EntityState.Modified; return(ctx.SaveChanges() > 0); }
public Requist Add(Requist r) { ctx.Requist.Add(r); return(ctx.SaveChanges() > 0 ? r : null); }
public Requist Add(Requist R) { ctx.Requist.Add(R); return(ctx.SaveChanges() > 0? R : null); }