public JsonResult SetBilling2(string value, string Billing, DateTime date)
        {
            try
            {
                FacadeLog.MobileWriteEntry("Order/SetBilling|" + Billing);
                ModelViewUserG   objCred = new JavaScriptSerializer().Deserialize <ModelViewUserG>(value);
                ModelViewBilling obj     = new JavaScriptSerializer().Deserialize <ModelViewBilling>(Billing);

                if (obj.EstimatedTipe == 2)
                {
                    var result = FacadePolicy.SetPolicyQuotation(objCred, obj);
                    return(Json(result, JsonRequestBehavior.AllowGet));
                }
                if (obj.EstimatedTipe == 3)
                {
                    var result = FacadePolicy.SetRefQuotation(objCred, obj);
                    return(Json(result, JsonRequestBehavior.AllowGet));
                }
                else
                {
                    var result = FacadeOrder.SetQuotation2(objCred, obj, date);
                    return(Json(result, JsonRequestBehavior.AllowGet));
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 public JsonResult GetAll()
 {
     try
     {
         var lt = FacadePolicy.GetAll();
         return(Json(lt, JsonRequestBehavior.AllowGet));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }