public IHttpActionResult setCreatePhone(PhoneTO objPhone) { int codError = 1; string msjError = ""; PhoneServices objServicio = new PhoneServices(); var result = objServicio.setCreatePhone(objPhone, ref codError, ref msjError); if (codError == 1) { return(Ok(result)); } return(BadRequest(msjError)); }
public IHttpActionResult getListPhone(int idUser) { int codError = 1; string msjError = ""; PhoneServices objServicio = new PhoneServices(); var result = objServicio.getListPhone(idUser, ref codError, ref msjError); if (codError == 1) { return(Ok(result)); } return(BadRequest(msjError)); }
public PhonesController() { _services = new PhoneServices(); }