public async Task <IHttpActionResult> CARRRequestUpdate(CARRRequestViewModel model) { if (model.CurrentResponse != null) { model.CurrentResponse.Id = Guid.NewGuid(); model.CurrentResponse.Attachments.ForEach(ev => { ev.AttachmentFullName = ev.AttachmentFullName.MoveToDestination("CarrResponse//" + model.CurrentResponse.Id); ev.Id = Guid.NewGuid(); }); } await WebApiService.Instance.PostAsync("boca/CARR/update", model); return(Ok()); }
public IHttpActionResult UpdateCARRRequest(CARRRequestViewModel model) { _bocaService.UpdateCARRRequest(model.ToServiceRequestModel()); return(Ok()); }