public static async Task UpdateJobAsync(FacilityRequest job)
 {
     await FacilityServiceBase.MobileClient.GetTable<FacilityRequest>().InsertAsync(job);
 }
 public async Task UpdateRequestAsync(FacilityRequest job)
 {
     await MobileServiceClientProvider.MobileClient.GetTable <FacilityRequest>().UpdateAsync(job);
 }
 public FacilityRequestViewModel(FacilityRequest request)
 {
     this.Update(request);
 }
예제 #4
0
 public async Task UpdateRequestAsync(FacilityRequest job)
 {
     await MobileServiceClientProvider.MobileClient.GetTable<FacilityRequest>().UpdateAsync(job);
 }
 public void Update(FacilityRequest request)
 {
     this.Id = request.Id;
     this.User = request.User;
     this.RoomType = request.RoomType;
     this.Building = request.Building;
     this.Room = request.Room;
     this.GeoLocation = request.GeoLocation;
     this.Zip = request.Zip;
     this.Street = request.Street;
     this.State = request.State;
     this.City = request.City;
     this.BTLEId = request.BTLEId;
     this.BeforeImageUrl = request.BeforeImageUrl;
     this.AfterImageUrl = request.AfterImageUrl;
     this.ProblemDescription = request.ProblemDescription;
     this.ServiceNotes = request.ServiceNotes;
     this.DocId = request.DocId ?? new Random((int)DateTime.Now.Ticks & 0x0000FFFF).Next(100000).ToString();
     this.RequestedDate = request.RequestedDate;
     this.CompletedDate = request.CompletedDate;
     this.Version = request.Version;            
 }