Exemplo n.º 1
0
 public async Task <DesignationDto> GetDesignationByIdAsync(int id)
 {
     return(await _dapperManager.QuerySingleAsync <DesignationDto>("SELECT * FROM Designation WHERE DesignationId=@id", new { id }));
 }
        public async Task <OrganizationInfoDto> GetOrganizationInfoAsync()
        {
            var obj = await _dapperManager.QuerySingleAsync <OrganizationInfoDto>("SELECT * FROM OrganizationInfo");

            return(obj);
        }
Exemplo n.º 3
0
 public async Task <ProductDto> GetProductByIdAsync(int id)
 {
     return(await _dapperManager.QuerySingleAsync <ProductDto>("SELECT * FROM ProductView " +
                                                               "WHERE ProductId=@id", new { id }));
 }
Exemplo n.º 4
0
 public async Task <CustomerQueryDto> GetQueryByIdAsync(int id)
 {
     return(await _dapperManager.QuerySingleAsync <CustomerQueryDto>("SELECT * FROM CustomerQuery WHERE Id=@id", new { id }));
 }
Exemplo n.º 5
0
 public async Task <FiscalYearDto> GetFiscalYearByIdAsync(int id)
 {
     return(await _dapperManager.QuerySingleAsync <FiscalYearDto>("SELECT * FROM FiscalYear WHERE FiscalYearId=@id", new { id }));
 }
Exemplo n.º 6
0
 public async Task <UnitDto> GetUnitByIdAsync(int id)
 {
     return(await _dapperManager.QuerySingleAsync <UnitDto>("SELECT * FROM Unit WHERE UnitId=@id", new { id }));
 }
Exemplo n.º 7
0
 public async Task <RoleDto> GetRoleByIdAsync(int id)
 {
     return(await _dapperManager.QuerySingleAsync <RoleDto>("SELECT * FROM Role WHERE RoleId=@id", new { id }));
 }
Exemplo n.º 8
0
 public async Task <MenuAccessPermissionDto> GetMenuAccessByIdAsync(int id)
 {
     return(await _dapperManager.QuerySingleAsync <MenuAccessPermissionDto>("SELECT * FROM MenuAccessPermission WHERE MenuAccessPermissionId=@id", new { id }));
 }
Exemplo n.º 9
0
 public async Task <AccountHeadDto> GetAllAccountHeadByIdAsync(int id)
 {
     return(await _dapperManager.QuerySingleAsync <AccountHeadDto>("SELECT * FROM AccountHead WHERE AccountHeadId=@id", new { id }));
 }
Exemplo n.º 10
0
 public async Task <SupplierDto> GetSupplierByIdAsync(int id)
 {
     return(await _dapperManager.QuerySingleAsync <SupplierDto>("SELECT * FROM Supplier WHERE SupplierId=@id", new { id }));
 }
Exemplo n.º 11
0
 public async Task <DepartmentDto> GetDepartmentByIdAsync(int id)
 {
     return(await _dapperManager.QuerySingleAsync <DepartmentDto>("SELECT * FROM Department WHERE DepartmentId=@id", new { id }));
 }