public IHttpActionResult addIndustry(Industry c) { // Industry c1 = new Industry { IndustryId=1, Name="ztt" }; int changeLine = IndustryDao.addIndustry(c); return(Ok(changeLine)); }
public IHttpActionResult Get(int id) { Industry p = IndustryDao.getIndustryByIndustryId(id); if (p != null) { return(Ok(p)); } else { return(NotFound()); } }
public IHttpActionResult deleteIndustry(Industry c) { int changeLine = IndustryDao.deleteIndustry(c); return(Ok(changeLine)); }
public IHttpActionResult updateBondsById(Industry c) { int changeLine = IndustryDao.updateIndustry(c); return(Ok(changeLine)); }
public IHttpActionResult Get() { return(Ok(IndustryDao.getIndustrys())); }