Example #1
0
        public int InsertHDAccess(OrderFulfillment.HDAccessForUser obj, string subDomainName)
        {
            int result = 0;

            try
            {
                using (IDbConnection connection = IDbOpenConnectionCompanyWise(subDomainName))
                {
                    var p = new DynamicParameters();
                    p.Add("@Company_Code", obj.CompanyCode);
                    p.Add("@User_Code", obj.UserCode);
                    p.Add("@LoginUserCode", obj.LoginUserCode);
                    p.Add("@Is_Web_Access", obj.Is_Web_Access);
                    p.Add("@Is_App_Access", obj.Is_App_Access);
                    p.Add("@Created_By", obj.LoginUserCode);
                    //connection.Query<int>("Sp_HD_InsertHDAccess", p, commandType: CommandType.StoredProcedure);
                    result = connection.Execute("Sp_HD_InsertHDAccess", p, commandType: CommandType.StoredProcedure);
                    connection.Close();
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(result);
        }
Example #2
0
        public int InsertHDAccess(OrderFulfillment.HDAccessForUser obj)
        {
            //obj.LoginUserCode= _objCurrentInfo.GetUserCode();
            //obj.CompanyCode= obj.GetCompanyCode();
            int result = 0;

            return(result = _blOrder.InsertHDAccess(obj, obj.subDomainName));
        }
Example #3
0
 public int InsertHDAccess(OrderFulfillment.HDAccessForUser obj, string subDomainName)
 {
     return(DAL_Order.InsertHDAccess(obj, subDomainName));
 }