public IHttpActionResult AddNewEmptyUserReceipt(string userName) { string tokenName = this.authService.GetUserName(this.User); if (!tokenName.Equals(userName)) { return(Unauthorized()); } string userId = this.authService.GetUserId(this.User); repository.AddEmpty(userId); return(Ok()); }