public IActionResult GetFabricaciones(int id) { Response response = new ListarProductos(this._unitOfWork).BuscarFabricaionesDeProducto(id); if (response.Mensaje != null) { return(BadRequest(response.Mensaje)); } return(Ok(response)); }
//public JsonResult ConsultaProductos() //{ // //WsConsulta.wsSoapClient db = new WsConsulta.wsSoapClient(); // //var wsconsulta = db.GetProductos().ToList(); // //return Json(wsconsulta, JsonRequestBehavior.AllowGet); //} //public ActionResult ProductosAll() //{ // var rs = from t in ListarProductos.ObtenerProductos() // select t; // return View(rs.ToList()); //} public ActionResult ProductosAll() { ViewBag.breadcrumb = "Catalogos/Lista de Productos"; ViewBag.pageheader = "Lista de Productos"; ViewBag.Heading = "Lista de Productos"; var rs = from t in ListarProductos.ObtenerProductos() select t; return(PartialView("_ProductosAll", rs)); }
public IActionResult GetProducto(int Id) { Response response = new ListarProductos(_unitOfWork). BuscarProducto(Id); if (response.Data == null) { return(NotFound(response.Mensaje)); } return(Ok(response)); }
private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { ListarProductos lista = new ListarProductos(); lista.Show(); }