public IActionResult Get() { try { IEnumerable <Call> _calls = _callRepository.GetAll().ToList(); IEnumerable <CallViewModel> _callsViewModel = _mapper.Map <IEnumerable <CallViewModel> >(_calls); return(new OkObjectResult(_callsViewModel)); } catch (Exception ex) { return(BadRequest("Error Occured")); } }