DocSas/PropertyService.Domain/ModelView/property/PropertyProvider.cs
/// <summary>
/// delete property acess as an asynchronous operation.
/// </summary>
/// <param name="propertyId">The property identifier.</param>
/// <param name="roleId">The role identifier.</param>
/// <param name="userId">The user identifier.</param>
/// <returns>Task&lt;DSCResponse&gt;.</returns>
delete property acess as an asynchronous operation.
delete property acess as an asynchronous operation .
public async Task<DSCResponse> DeletePropertyAcessAsync(Guid propertyId, Guid roleId, Guid userId)
        {
            var response = new DSCResponse();
            var issuccess = false;
            var management = await _appCommon.GetManagementUserAsync(userId);
            if (management != null)
            {
                var prop = await _propAccessRepo.GetSingleAsync(x => x.PropertyInformationId == propertyId && x.RoleId == roleId);
                if (prop != null)
                {                  
                    issuccess = await _propAccessRepo.DeleteAsync(prop);
                }
            }
            response.ResponseData = issuccess;
            return response;
        }
public async Task < DSCResponse > DeletePropertyAcessAsync ( Guid propertyId , Guid roleId , Guid userId ) { var response = new DSCResponse ( ) ; var issuccess = false ; var management = await _appCommon . GetManagementUserAsync ( userId ) ; if ( management != null ) { var prop = await _propAccessRepo . GetSingleAsync ( x => x . PropertyInformationId == propertyId && x . RoleId == roleId ) ; if ( prop != null ) { issuccess = await _propAccessRepo . DeleteAsync ( prop ) ; } } response . ResponseData = issuccess ; return response ; }
delete property acess as an asynchronous operation.
delete property acess as an asynchronous operation .
None
propertyId
Guid
The property identifier.
The property identifier .
roleId
Guid
The role identifier.
The role identifier .
userId
Guid
The user identifier.
The user identifier .