C# Class RrCms.Models.NewsRepository

Datei anzeigen Open project: ateregulov/RR-CMS

Public Methods

Method Description
Create ( News news ) : bool
Delete ( News news ) : bool
Edit ( News news ) : bool
GetAll ( ) : List
GetNewByID ( int id ) : News

Private Methods

Method Description
texttitle ( string text ) : string

Method Details

Create() public static method

public static Create ( News news ) : bool
news News
return bool

Delete() public static method

public static Delete ( News news ) : bool
news News
return bool

Edit() public static method

public static Edit ( News news ) : bool
news News
return bool

GetAll() public static method

public static GetAll ( ) : List
return List

GetNewByID() public static method

public static GetNewByID ( int id ) : News
id int
return News