public JsonResult Insert_BOMaster(BookOrdMasterVM DOMasterVM)
        {
            bool result = false;

            string msg = "Failed to save record..";

            if (DOMasterVM.BookRefNo != "" && DOMasterVM.BookRefNo != "0")
            {
                if (Core.CRM.ADO.SecurityBll.UserRights("2014", "003"))
                {
                    result = BookingOrderMethods.Insert_BOMaster(DOMasterVM, ref msg);
                    if (result)
                    {
                        msg = "Successfully Added";
                    }
                }
                else
                {
                    msg    = "You dn't have a right! Please Contact to Administrator";
                    result = false;
                }
            }
            else
            {
                result = BookingOrderMethods.Insert_BOMaster(DOMasterVM, ref msg);
                if (result)
                {
                    msg = "Successfully Added";
                }
            }


            return(Json(new { Success = result, Message = msg }, JsonRequestBehavior.AllowGet));
        }
        public JsonResult Insert_BOMaster(BookOrdMasterVM DOMasterVM)
        {
            bool result = false;

            string msg = "Failed to save record..";

            result = BookingOrderMethods.Insert_BOMaster(DOMasterVM, ref msg);

            if (result)
            {
                msg = "Successfully Added";
            }

            return(Json(new { Success = result, Message = msg }, JsonRequestBehavior.AllowGet));
        }