public static int Add(OQUT qoutation)
 {
     try
     {
         return DbMngmt<OQUT>.Add(qoutation).id;
     }
     catch (Exception)
     {
         throw;
     }
 }
 public static void Update(OQUT qoutation)
 {
     try
     {
         DbMngmt<OQUT>.Update(qoutation);
     }
     catch (Exception)
     {
         throw;
     }
 }
        public ActionResult Create(OQUT quotation)
        {
            #region User identification
            IIdentity context = HttpContext.User.Identity;
            string userId = "";
            bool admin = false;
            bool customerCreator = false;
            bool purchaseOrderCreator = false;
            int companyId = 0;
            string userName = "";
            int slpCode = 0;
            AppConnData appConnData = new AppConnData();

            if (context.IsAuthenticated)
            {

                System.Web.Security.FormsIdentity ci = (System.Web.Security.FormsIdentity)HttpContext.User.Identity;
                string[] userRole = ci.Ticket.UserData.Split('|');

                userId = userRole[0];
                admin = int.Parse(userRole[1]) == 1 ? true : false;
                customerCreator = int.Parse(userRole[2]) == 1 ? true : false;
                purchaseOrderCreator = int.Parse(userRole[3]) == 1 ? true : false;
                companyId = int.Parse(userRole[4]);
                slpCode = int.Parse(userRole[5]);
                userName = ci.Name;
                appConnData = GetAppConnData(companyId);
            }
            #endregion

            quotation.uOrkUsuarioWeb = userId;
            quotation.idCompania = companyId;
            quotation.slpCode = slpCode;
            int orderNum = BizQuotation.Add(quotation);
            return RedirectToAction("AddLine", new { id = HexSerialization.StringToHex(orderNum.ToString()) });
        }