public ActionResult AnularRequisicion(int id) { try { var req = service.GetRequisicionWithDetails(id); req.Anulado = true; kardexMap.CreateKardexRD(req.TbPrRequisicionDetalle.ToList(), true); service.Update(req); return(Json(new { success = true })); } catch (Exception ex) { AltivaLog.Log.Insertar(ex.ToString(), "Error"); return(BadRequest()); } }
public TbPrRequisicion Update(RequisicionViewModel viewModel) { return(service.Update(ViewModelToDomain(viewModel))); }