public static bool AccessTest(UserCredit discount, ModelGeneralAttribute attr) { if (attr.Acl) { if (LS.CurrentShop != null) { return(discount.ShopID == LS.CurrentShop.ID); } return(false); } ; return(true); }
public static string InsertGeneralError(UserCredit credit) { return(RP.S("Admin.UserCredit.Create.CantCreateCredits")); }
public static string DuplicateError(UserCredit credit) { return(RP.S("Admin.UserCredit.Create.ThisUserAndShopAlreadyAdded")); }