Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="form-group">
- <label>N° Factura</label>
- <input type="checkbox" name="checkfactura" id="idcheckfactura" value="true" checked="checked" />
- @Html.TextBox("NumeroFactura", null, new { @class = "form-control", id = "factura" })
- </div>
- [HttpPost]
- public ActionResult BuscarRecepcion(int NumeroFactura, bool checkfactura = false)
- {
- if (!string.IsNullOrEmpty(NumeroFactura.ToString()))
- {
- if (checkfactura)
- {
- //BUSCO FACTURA
- var numerofactura1 = db.Entradas.Where(f => f.n_Factura == Convert.ToInt32(NumeroFactura))
- .Select(d => d.n_Factura).FirstOrDefault();
- }
- }
- }
Add Comment
Please, Sign In to add comment