Ejemplo n.º 1
0
        public ActionResult GenerateDL(int Id)
        {
            string retval = SAPDIAPI.GenerateDL(Id);

            ServisniZasah.UpdateDelivery(retval, Id);
            return(RedirectToAction("Details", "ServisniZasah", new { Id }));
        }
Ejemplo n.º 2
0
        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 }));
        }