Exemplo n.º 1
0
        /// <summary>
        /// SelectOne
        /// </summary>
        /// <param name="Id"></param>
        /// <param name="ErrorMsg">Result</param>
        /// <returns></returns>
        public SysAreaVm SelectOne(string Id, ref string ErrorMsg)
        {
            SelectInfo <SysArea> selectInfo = new SelectInfo <SysArea>("SysArea");
            var DbRequest = selectInfo
                            .GetById("123")
                            .Run <SysAreaVm>(sysAreaRepository.GetDb());

            return(DbRequest);
        }
Exemplo n.º 2
0
 public SysAreaService(
     IHttpRpcService _HttpRpcService,
     IQRCodeService _IQRCodeService,
     ILogService _LogService,
     IConfiguration _IConfiguration,
     ISysAreaRepository _ISysAreaRepository
     )
 {
     httpRpcService    = _HttpRpcService;
     qRCodeService     = _IQRCodeService;
     logService        = _LogService;
     configuration     = _IConfiguration;
     sysAreaRepository = _ISysAreaRepository;
     db = sysAreaRepository.GetDb();
 }