示例#1
0
        public ApplicantModel Get(int id)
        {
            _LogHelper.Information(String.Format("Get regqest 'api/applicant?id has come.'"));

            try
            {
                return(_Mapper.Map <ApplicantModel>(_ApplicantManager.GetById(id)));
            }
            catch (Exception ex)
            {
                _LogHelper.Error(String.Format("Get regqest 'api/applicant?id got the followwing error: {0}", ex.ToString()));
                throw new ApiException(ex.Message, System.Net.HttpStatusCode.BadRequest);
            }
        }