示例#1
0
 public Adjustment(DTO_Adjustment adj)
 {
     AdjustmentID       = adj.AdjustmentID;
     AdjusterID         = adj.AdjusterID;
     ClaimID            = adj.ClaimID;
     Gutters            = adj.Gutters;
     Exterior           = adj.Exterior;
     Interior           = adj.Interior;
     AdjustmentDate     = adj.AdjustmentDate;
     AdjustmentResultID = adj.AdjustmentResultID;
     AdjustmentComment  = adj.AdjustmentComment;
 }
        public async Task AddAdjustment(DTO_Adjustment token)
        {
            try
            {
                var response = await client.PostAsJsonAsync(string.Format(@"{0}{1}", URL, "AddAdjustment"),
                                                            token);

                response.EnsureSuccessStatusCode();
                Adjustment = await response.Content.ReadAsAsync <DTO_Adjustment>();
            }
            catch (Exception ex)
            {
            }
        }
示例#3
0
 async public Task <string> UpdateAdjustment(DTO_Adjustment token)
 {
     Adjustment = JsonConvert.DeserializeObject <DTO_Adjustment>(await MakeRequest(token, "UpdateAdjustment"));
     return(Adjustment.Message);
 }