C# Class DAL.Extensions.RoleExtension

Show file Open project: kulish-alina/HR_Project

Public Methods

Method Description
Update ( this role, RoleDTO source, IUnitOfWork uow ) : void

Maps the existing Role DTO to domain Role entity

Private Methods

Method Description
MatchPermissions ( int value, IPermissionRepository repository ) : IEnumerable

The method that matches incoming number to a collection of permissions

Method Details

Update() public static method

Maps the existing Role DTO to domain Role entity
public static Update ( this role, RoleDTO source, IUnitOfWork uow ) : void
role this An object to assign data
source DAL.DTO.RoleDTO A DTO to take data from
uow IUnitOfWork A facade of repositories
return void