public void Delete(FileDeleteDto dto) { this._fileAuthService.VerifyComm100Platform(dto.Auth); this._fileDomainService.Delete(dto.FileKey); throw new NotImplementedException(); }
public async Task <ActionResult> Delete(string fileKey) { var dto = new FileDeleteDto() { FileKey = fileKey, Auth = new AuthComm100Platform { SharedSecret = Request.Headers["Authorization"].ToArray().FirstOrDefault(a => a.StartsWith("Bearer "))?.Replace("Bearer ", string.Empty), IP = Request.HttpContext.Connection.RemoteIpAddress.MapToIPv4().ToString(), } }; await this._fileAppService.Delete(dto); return(Ok()); }
public async Task Delete(FileDeleteDto dto) { await this._fileAuthService.VerifyComm100Platform(dto.Auth); await this._fileDomainService.Delete(dto.FileKey); }