예제 #1
0
        public IActionResult GetProducer(Guid producerId)
        {
            if (producerId == null)
            {
                return(BadRequest());
            }

            var Producer = _personHelper.GetPerson(producerId);

            if (Producer != null)
            {
                return(Ok(Producer));
            }
            else
            {
                return(NotFound(new { message = ErrorMessages.PRODUCER_NOT_FOUND }));
            }
        }
예제 #2
0
        public IActionResult GetActor(Guid actorId)
        {
            if (actorId == null)
            {
                return(BadRequest(new { message = "Please check input." }));
            }

            var actor = _personHelper.GetPerson(actorId);

            if (actor != null)
            {
                return(Ok(actor));
            }
            else
            {
                return(NotFound(new { message = ErrorMessages.ACTOR_NOT_FOUND }));
            }
        }