Ejemplo n.º 1
0
 public ActionResult AcceptRequests(AcceptRequestsModel model)
 {
     RequestBl.SetAcceptDate(model);
      if(!string.IsNullOrEmpty(model.Error))
          ModelState.AddModelError(string.Empty,model.Error);
      return View(model);
 }
Ejemplo n.º 2
0
 public ActionResult AcceptRequests(int? month, int? year)
 {
     if (!month.HasValue)
          month = DateTime.Today.Month;
      if (!year.HasValue)
          year = DateTime.Today.Year;
      AcceptRequestsModel model = new AcceptRequestsModel
      {
          Month = month.Value,
          Year = year.Value,
      };
      RequestBl.GetAcceptRequestsModel(model);
      return View(model);
 }