public async Task AddPhoto(ApiHttpClient apiClient, ApplicantResponse applicantResponse, HttpPostedFileBase file)
 {
     using (var reader = new BinaryReader(file.InputStream))
     {
         var document = new ApplicantDocumentParameter
         {
             Content       = reader.ReadBytes(file.ContentLength),
             FileExtension = (Path.GetExtension(file.FileName) ?? "").Trim('.')
         };
         await new ApplicantPhotoPostRequest(applicantResponse.Id, document).LoadResult(apiClient);
     }
 }
 public ApplicantDocumentPostRequest(int documentId, ApplicantDocumentParameter document)
     : base("Applicant/Document/" + documentId, document)
 {
 }
Exemple #3
0
 public ApplicantCvPostRequest(int applicantId, ApplicantDocumentParameter document)
     : base("Applicant/Cv/" + applicantId, document)
 {
 }
Exemple #4
0
 public ApplicantPhotoPostRequest(int applicantId, ApplicantDocumentParameter document)
     : base("Applicant/Photo/" + applicantId, document)
 {
 }
Exemple #5
0
 public ApplicantDocumentPutRequest(int applicantId, ApplicantDocumentParameter document)
     : base("Api/Applicant/Document/" + applicantId, document)
 {
 }