コード例 #1
0
ファイル: RolesService.cs プロジェクト: monjurulrana/EasyHRM
        public int UpdateRole(RolesDTO data)
        {
            Role dataToUpdate = RolesRequestFormatter.ConvertRespondentInfoFromDTO(data);
            var  response     = _unitOfWork.RoleRepository.Update(dataToUpdate);

            return(response);
        }
コード例 #2
0
ファイル: RolesService.cs プロジェクト: monjurulrana/EasyHRM
        public RolesDTO InsertRoles(RolesDTO data)
        {
            Role dataToInsert = RolesRequestFormatter.ConvertRespondentInfoFromDTO(data);

            return(RolesRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.RoleRepository.Create(dataToInsert)));
        }
コード例 #3
0
ファイル: RolesService.cs プロジェクト: monjurulrana/EasyHRM
 public RolesDTO GetRoleById(int roleId)
 {
     return(RolesRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.RoleRepository.GetById(roleId)));
 }