Example #1
0
    public void save_Click(object sender, EventArgs e)
    {
        TransitAccountQuota t_instance = null;

        try
        {
            t_instance = SessionManager.AccountService.GetAccountQuotaByObjectName(
                SessionManager.Ticket, RequestId, inputObject.SelectedValue);
        }
        catch
        {
            t_instance = new TransitAccountQuota();
        }

        t_instance.Limit          = int.Parse(inputLimit.SelectedValue);
        t_instance.DataObjectName = inputObject.SelectedValue;
        t_instance.AccountId      = RequestId;
        SessionManager.CreateOrUpdate <TransitAccountQuota>(t_instance,
                                                            SessionManager.AccountService.CreateOrUpdateAccountQuota);
        GetData(sender, e);
    }
Example #2
0
 public int CreateOrUpdateAccountQuota(string ticket, TransitAccountQuota quota)
 {
     return WebServiceImpl<TransitAccountQuota, ManagedAccountQuota, AccountQuota>.CreateOrUpdate(
         ticket, quota);
 }
    public void save_Click(object sender, EventArgs e)
    {
        TransitAccountQuota t_instance = null;
        try
        {
            t_instance = SessionManager.AccountService.GetAccountQuotaByObjectName(
                SessionManager.Ticket, RequestId, inputObject.SelectedValue);
        }
        catch
        {
            t_instance = new TransitAccountQuota();
        }

        t_instance.Limit = int.Parse(inputLimit.SelectedValue);
        t_instance.DataObjectName = inputObject.SelectedValue;
        t_instance.AccountId = RequestId;
        SessionManager.CreateOrUpdate<TransitAccountQuota>(t_instance, 
            SessionManager.AccountService.CreateOrUpdateAccountQuota);
        GetData(sender, e);
    }