public ActionResult GenerateDL(int Id) { string retval = SAPDIAPI.GenerateDL(Id); ServisniZasah.UpdateDelivery(retval, Id); return(RedirectToAction("Details", "ServisniZasah", new { Id })); }
public ActionResult GenerateQuotation(int Id) { string retval = ""; try { retval = SAPDIAPI.GenerateQuotation(Id); } catch (Exception ex) { log.Error("Error number: " + ex.HResult + " - " + ex.Message + " - " + ex.Data + " - " + ex.InnerException); } try { ServisniZasah.UpdateQuotation(retval, Id); } catch (Exception ex) { log.Error("Error number: " + ex.HResult + " - " + ex.Message + " - " + ex.Data + " - " + ex.InnerException); } return(RedirectToAction("Details", "ServisniZasah", new { Id })); }