public AcknowledgementResponse GetResponse(UploadFileRequest request) { int code; try { if (request.Offset == 0 && IOService.FileExists(request.Path)) { IOService.DeleteFile(request.Path); } IOService.AppendFile(request.Path, request.Data, request.Offset); code = 200; } catch { code = 400; } return(new AcknowledgementResponse { Code = code }); }