Beispiel #1
0
        public async Task<IHttpActionResult> GetByNumberAsOwner(string orderNumber)
        {
            var result = await _orderAppService.GetByNumber(orderNumber);

            if (User.Identity.GetUserId() == result.UserId)
                return Ok(result);
            return Unauthorized();
        }