public string Upload(Context context, long id, ContentRangeHeaderValue contentRange) { var log = new SysLogModel(context: context); var result = context.Authenticated ? BinaryUtilities.UploadFile(context, id, contentRange) : Messages.ResponseAuthentication(context: context).ToJson(); log.Finish(context: context, responseSize: result.Length); return(result); }