public ActionResult <List <Object_Type> > Get(int id) { AppDB db = provider.GetRequiredService <AppDB>(); Object_TypeDA object_Type = new Object_TypeDA(db); return(object_Type.GetById(id)); }
public ActionResult <List <Object_Type> > Get() { AppDB db = provider.GetService <AppDB>(); Object_TypeDA object_Type = new Object_TypeDA(db); return(object_Type.getAll()); }
public ActionResult <object> Update(Object_Type object_Type) { AppDB db = provider.GetRequiredService <AppDB>(); Object_TypeDA object_TypeDA = new Object_TypeDA(db); var res = object_TypeDA.update(object_Type); return(new { result = res }); }