C# Class Blog.DAL.PostDAL

Inheritance: IPost
Show file Open project: d3dek/AwesomeBlog

Public Methods

Method Description
DodajPost ( string tytul, string tresc, int status ) : int
DodajPost ( string tytul, string tresc, int status, string tagi, string opis ) : int
DodajPost ( PostModel post ) : void
EdytujPost ( int id, string tytul, string tresc, int status ) : void
EdytujPost ( int id, string tytul, string tresc, int status, string tagi, string opis ) : void
PobierzPost ( int id ) : PostModel
PobierzWszystkie ( ) : List
WyciagnijIdPosta ( string tytul ) : int

Method Details

DodajPost() public method

public DodajPost ( string tytul, string tresc, int status ) : int
tytul string
tresc string
status int
return int

DodajPost() public method

public DodajPost ( string tytul, string tresc, int status, string tagi, string opis ) : int
tytul string
tresc string
status int
tagi string
opis string
return int

DodajPost() public method

public DodajPost ( PostModel post ) : void
post Blog.Models.PostModel
return void

EdytujPost() public method

public EdytujPost ( int id, string tytul, string tresc, int status ) : void
id int
tytul string
tresc string
status int
return void

EdytujPost() public method

public EdytujPost ( int id, string tytul, string tresc, int status, string tagi, string opis ) : void
id int
tytul string
tresc string
status int
tagi string
opis string
return void

PobierzPost() public method

public PobierzPost ( int id ) : PostModel
id int
return Blog.Models.PostModel

PobierzWszystkie() public method

public PobierzWszystkie ( ) : List
return List

WyciagnijIdPosta() public method

public WyciagnijIdPosta ( string tytul ) : int
tytul string
return int