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) { }
public ApplicantCvPostRequest(int applicantId, ApplicantDocumentParameter document) : base("Applicant/Cv/" + applicantId, document) { }
public ApplicantPhotoPostRequest(int applicantId, ApplicantDocumentParameter document) : base("Applicant/Photo/" + applicantId, document) { }
public ApplicantDocumentPutRequest(int applicantId, ApplicantDocumentParameter document) : base("Api/Applicant/Document/" + applicantId, document) { }