public ActionResult Index(int?page) { SearchInRequestInput model = new SearchInRequestInput(); try { model.Query = ""; model.UserId = _currentUser.CurrentUserId; model.CompanyName = _currentUser.CompanyName; model.Entities = _inRequestService.SearchInRequest(model); model.Users = _inRequestService.GetAllUsers(_currentUser.CompanyName); model.Cellars = _inRequestService.GetAllCellars(_currentUser.CompanyName); model.User = _inRequestService.GetUser(_currentUser.CurrentUserId); model.Control = "InRequests"; model.Action = "Search"; model.ErrorCode = ErrorCodeHelper.Ok; model.ErrorDescription = ""; } catch (Exception e) { model.ErrorCode = ErrorCodeHelper.Error; model.ErrorDescription = "Error al buscar los Artículos"; } return(View(model)); }
public ActionResult InRequestDetails(Guid id) { var temp = _inRequestService.Get(id); temp.Users = _inRequestService.GetAllUsers(_currentUser.CompanyName); return(ViewPdf("", "~/Content/bootstrap.min.css", "InRequestPdf", temp, false)); }