Beispiel #1
0
 public IActionResult Accept(FullInfoRequestServiceModel model)
 {
     //Проверки дали са въведени достатъчно данни. Цена превозвач, клиент, салдо
     //фирма превозвач/
     requestService.SaveChanges(model);
     try
     {
         requestService.ProcessToNextStatus(model.ID);
     }
     catch (System.Exception)
     {
         throw new InvalidOperationException("Missing siquence in RequestStatusSequenceSetting.json ");
     }
     return(Redirect("/"));
 }
Beispiel #2
0
 public IActionResult Delete(FullInfoRequestServiceModel model)
 {
     requestService.Delete(model.ID);
     return(Redirect("/"));
 }
Beispiel #3
0
 public IActionResult SaveChanges(FullInfoRequestServiceModel model)
 {
     requestService.SaveChanges(model);
     ;
     return(Redirect("/Request/RequestListFiltered"));
 }