C# Class DAL.Services.NoteService

Datei anzeigen Open project: kulish-alina/HR_Project Class Usage Examples

Public Methods

Method Description
Add ( NoteDTO noteToAdd ) : NoteDTO
Delete ( int id ) : bool
Get ( int id ) : NoteDTO
GetByUserId ( int userId ) : IEnumerable
NoteService ( IUnitOfWork uow ) : System
Update ( NoteDTO noteToChange ) : NoteDTO

Method Details

Add() public method

public Add ( NoteDTO noteToAdd ) : NoteDTO
noteToAdd DAL.DTO.NoteDTO
return DAL.DTO.NoteDTO

Delete() public method

public Delete ( int id ) : bool
id int
return bool

Get() public method

public Get ( int id ) : NoteDTO
id int
return DAL.DTO.NoteDTO

GetByUserId() public method

public GetByUserId ( int userId ) : IEnumerable
userId int
return IEnumerable

NoteService() public method

public NoteService ( IUnitOfWork uow ) : System
uow IUnitOfWork
return System

Update() public method

public Update ( NoteDTO noteToChange ) : NoteDTO
noteToChange DAL.DTO.NoteDTO
return DAL.DTO.NoteDTO