コード例 #1
0
 public IndependentCompanyDetail GetICDetailsById(int id)
 {
     try {
         IndependentCompanyDetail result = new IndependentCompanyDetail();
         var ic = _context.IndependentCompany.Where(x => x.Id == id && x.IsDelete == false).FirstOrDefault();
         result = _mapper.Map <IndependentCompanyDetail> (ic);
         return(result);
     } catch (Exception ex) {
         throw ex;
     }
 }
コード例 #2
0
        public IndependentCompanyDetail GetICDetailsById(int id)
        {
            IndependentCompanyDetail icDetail = _icRepository.GetICDetailsById(id);

            return(icDetail);
        }