public int ReleaseSingleDeviceLock(OrderFulfillment.ReleaseSingleDeviceLock obj) { //obj.LoginUserCode= _objCurrentInfo.GetUserCode(); //obj.CompanyCode= obj.GetCompanyCode(); int result = 0; return(result = _blOrder.ReleaseSingleDeviceLock(obj, obj.subDomainName)); }
public int ReleaseSingleDeviceLock(OrderFulfillment.ReleaseSingleDeviceLock obj, string subDomainName) { int result = 0; try { using (IDbConnection connection = IDbOpenConnectionCompanyWise(subDomainName)) { var p = new DynamicParameters(); p.Add("@UserCode", obj.UserCode); p.Add("@Device_GUID", obj.Device_GUID); p.Add("@LoginUserCode", obj.LoginUserCode); p.Add("@Reason", obj.Reason); //connection.Query<int>("Sp_HD_InsertHDAccess", p, commandType: CommandType.StoredProcedure); result = connection.Execute("SP_HD_ReleaseSingleDeviceLock", p, commandType: CommandType.StoredProcedure); connection.Close(); } } catch (Exception ex) { throw ex; } return(result); }
public int ReleaseSingleDeviceLock(OrderFulfillment.ReleaseSingleDeviceLock obj, string subDomainName) { return(DAL_Order.ReleaseSingleDeviceLock(obj, subDomainName)); }