Ejemplo n.º 1
0
        public async Task <IHttpActionResult> GetOther(int id)
        {
            var otherDto = await _otherService.GetSingleAsync(id);

            if (otherDto == null)
            {
                return(NotFound());
            }
            var response = new OtherCompleteDto()
            {
                Others = new List <OtherDto>()
            };

            response.Others.Add(otherDto);
            return(Ok(response));
        }