public IEnumerable <SobaView> Get() { SobaProvider provider = new SobaProvider(); IEnumerable <SobaView> sobe = provider.GetSobe(); return(sobe); }
public int Delete(int id) { SobaProvider provider = new SobaProvider(); return(provider.RemoveSoba(id)); }
public int Put([FromBody] Soba s) { SobaProvider provider = new SobaProvider(); return(provider.EditSoba(s)); }
public int Post([FromBody] Soba s) { SobaProvider provider = new SobaProvider(); return(provider.AddSoba(s)); }
public SobaView Get(int id) { SobaProvider provider = new SobaProvider(); return(provider.GetSobaView(id)); }