C# 클래스 Teleimot.Services.Data.CommentsService

상속: ICommentsService
파일 보기 프로젝트 열기: TelerikAcademy/Web-Services-and-Cloud

공개 메소드들

메소드 설명
AddNew ( Comment comment, string userId ) : int
CommentsService ( IRepository comments ) : System
GetAllByRealEstate ( int realEstateId, int skip, int take ) : IQueryable
GetAllByUser ( string username, int skip, int take ) : IQueryable
GetById ( int id ) : IQueryable

비공개 메소드들

메소드 설명
SortAndPageComments ( bool>.Expression filterExpression, int skip, int take ) : IQueryable

메소드 상세

AddNew() 공개 메소드

public AddNew ( Comment comment, string userId ) : int
comment Teleimot.Data.Models.Comment
userId string
리턴 int

CommentsService() 공개 메소드

public CommentsService ( IRepository comments ) : System
comments IRepository
리턴 System

GetAllByRealEstate() 공개 메소드

public GetAllByRealEstate ( int realEstateId, int skip, int take ) : IQueryable
realEstateId int
skip int
take int
리턴 IQueryable

GetAllByUser() 공개 메소드

public GetAllByUser ( string username, int skip, int take ) : IQueryable
username string
skip int
take int
리턴 IQueryable

GetById() 공개 메소드

public GetById ( int id ) : IQueryable
id int
리턴 IQueryable