Ejemplo n.º 1
0
        public IActionResult Get(int id)
        {
            Call _call = _callRepository.GetSingle(id);

            if (_call == null)
            {
                return(NotFound());
            }
            CallViewModel _callViewModel = _mapper.Map <CallViewModel>(_call);

            return(new OkObjectResult(_callViewModel));
        }