C# Class HBS.Data.Concrete.CommonRepository

Inheritance: BaseRepository, ICommonRepository
Mostra file Open project: heartbeatservice/HeartbeatServiceSolution

Public Methods

Method Description
AddCompany ( Company company ) : int
AddInsurance ( Insurance insurance ) : bool
AddStudent ( Student student ) : bool
GetAlerts ( int companyId, int userId ) : Alert
GetAllCompanies ( ) : List
GetAppointments ( int companyId ) : List
GetCompanies ( string companyName ) : List
GetCompnay ( int companyId ) : Company
GetInsurance ( int insuranceId ) : Insurance
GetInsurances ( int companyId, string insuranceName ) : List
RemoveCompany ( int compnayId, int updatedBy ) : bool
RemoveInsurance ( int insuranceId, int updatedBy ) : bool
SendMail ( EmailMessage msg ) : void
UpdateCompany ( Company company ) : bool
UpdateInsurance ( Insurance insurance ) : bool

Method Details

AddCompany() public method

public AddCompany ( Company company ) : int
company HBS.Entities.Company
return int

AddInsurance() public method

public AddInsurance ( Insurance insurance ) : bool
insurance HBS.Entities.Insurance
return bool

AddStudent() public method

public AddStudent ( Student student ) : bool
student HBS.Entities.Student
return bool

GetAlerts() public method

public GetAlerts ( int companyId, int userId ) : Alert
companyId int
userId int
return HBS.Entities.Alert

GetAllCompanies() public method

public GetAllCompanies ( ) : List
return List

GetAppointments() public method

public GetAppointments ( int companyId ) : List
companyId int
return List

GetCompanies() public method

public GetCompanies ( string companyName ) : List
companyName string
return List

GetCompnay() public method

public GetCompnay ( int companyId ) : Company
companyId int
return HBS.Entities.Company

GetInsurance() public method

public GetInsurance ( int insuranceId ) : Insurance
insuranceId int
return HBS.Entities.Insurance

GetInsurances() public method

public GetInsurances ( int companyId, string insuranceName ) : List
companyId int
insuranceName string
return List

RemoveCompany() public method

public RemoveCompany ( int compnayId, int updatedBy ) : bool
compnayId int
updatedBy int
return bool

RemoveInsurance() public method

public RemoveInsurance ( int insuranceId, int updatedBy ) : bool
insuranceId int
updatedBy int
return bool

SendMail() public method

public SendMail ( EmailMessage msg ) : void
msg HBS.Entities.EmailMessage
return void

UpdateCompany() public method

public UpdateCompany ( Company company ) : bool
company HBS.Entities.Company
return bool

UpdateInsurance() public method

public UpdateInsurance ( Insurance insurance ) : bool
insurance HBS.Entities.Insurance
return bool