Example #1
0
        public ActionResult <IEnumerable <JobInterview> > Get()
        {
            try
            {
                var authentication = new Authentication(Request, _userService);

                var result = _jobInterviewService.GetAll(authentication.User);
                return(Ok(result));
            }
            catch (Exception ex)
            {
                return(UnprocessableEntity(ex));
            }
        }