public ResultadoVO crearElaboracion(ElaboracionVO elaboracion) { ElaboracionService elaboracionService = new ElaboracionService(); ResultadoVO resultadoVO = new ResultadoVO(); try { resultadoVO = elaboracionService.crearDocumento(elaboracion); } catch (Exception ex) { log.Error(ex); resultadoVO.Success = false; resultadoVO.DocEntry = 0; resultadoVO.Mensaje = ex.Message; } return(resultadoVO); }
public MenusController(DbContext context) { _db = context; _elaboracionService = new ElaboracionService(context); _productoService = new ProductoService(context); }