DocSas/PropertyService.Domain/ModelView/Staffs/StaffProvider.cs
/// <summary>
/// get staffs as an asynchronous operation.
/// </summary>
/// <param name="userId">The user identifier.</param>
/// <returns>Task&lt;DSCResponse&gt;.</returns>
get staffs as an asynchronous operation.
get staffs as an asynchronous operation .
public async Task<DSCResponse> GetStaffsAsync(Guid userId)
        {
            var msg = new Dictionary<string, string>();
            var response = new DSCResponse();
            var management = await _appCommon.GetManagementUserAsync(userId);
            if (management != null)
            {
              var  staffs = await _staffRepo.GetQueryAsync<StaffRoleVM>("GetStaffs", new Dictionary<string, object>() {
                        {"recordCount", DataUtil.DefaultNumberOfRows },
                        {"managementUserId",management.Id }
                    });
                response.ResponseData = staffs;
            }
            response.ErrorMessage = msg;
            return response;
        }
public async Task < DSCResponse > GetStaffsAsync ( Guid userId ) { var msg = new Dictionary < string , string > ( ) ; var response = new DSCResponse ( ) ; var management = await _appCommon . GetManagementUserAsync ( userId ) ; if ( management != null ) { var staffs = await _staffRepo . GetQueryAsync < StaffRoleVM > ( " " , new Dictionary < string , object > ( ) { { " " , DataUtil . DefaultNumberOfRows } , { " " , management . Id } } ) ; response . ResponseData = staffs ; } response . ErrorMessage = msg ; return response ; }
get staffs as an asynchronous operation.
get staffs as an asynchronous operation .
None
userId
Guid
The user identifier.
The user identifier .