public EmployeeResponse Any(EmployeeUpdateRequest request) { if (Validator != null) { Validator.ValidateAndThrow(request, ApplyTo.Put); } OnBeforeEmployeeUpdateRequest(request); var filesInBytes = base.GetFilesInBytes(); var filesUploaded = filesInBytes.Count; var fidx = 0; if (filesUploaded > 0) { if (!string.IsNullOrEmpty(request.PhotoSrcPath)) { request.Photo = filesInBytes[fidx]; fidx++; } } var output = Repository.Update(request); OnAfterEmployeeUpdateRequest(request, output); return(output); }
partial void OnAfterEmployeeUpdateRequest(EmployeeUpdateRequest request, EmployeeResponse response);
partial void OnBeforeEmployeeUpdateRequest(EmployeeUpdateRequest request);