예제 #1
0
        public IEnumerable <ApplicantModel> Get()
        {
            _LogHelper.Information(String.Format("Get regqest 'api/applicant has come.'"));

            try
            {
                List <ApplicantModel> applicants = _Mapper.Map <List <ApplicantModel> >(_ApplicantManager.GetAll());
                return(applicants);
            }
            catch (Exception ex)
            {
                _LogHelper.Error(String.Format("Get regqest 'api/applicant got the followwing error: {0}", ex.ToString()));
                throw new ApiException(ex.Message, System.Net.HttpStatusCode.BadRequest);
            }
        }
예제 #2
0
 public ActionResult <IEnumerable <string> > Get()
 {
     return(Ok(_applicantManager.GetAll()));
 }