C# Class Agribusiness.Web.Services.FirmService

Inheritance: IFirmService
Mostrar archivo Open project: ucdavis/Agribusiness

Public Methods

Method Description
FirmService ( IRepository firmRepository ) : System
GetAllFirms ( ) : IEnumerable

Gets a list of firms with the latest revision of each

eventually this would be the ideal query, until nhibernate supports it from firm in Firms where (from a in Firms group a by a.FirmCode into b select b.Max(c=>c.Id) ).Contains(firm.Id) select firm

GetFirm ( System.Guid firmCode ) : Firm

Gets the latest revision of a specific firm

Method Details

FirmService() public method

public FirmService ( IRepository firmRepository ) : System
firmRepository IRepository
return System

GetAllFirms() public method

Gets a list of firms with the latest revision of each
eventually this would be the ideal query, until nhibernate supports it from firm in Firms where (from a in Firms group a by a.FirmCode into b select b.Max(c=>c.Id) ).Contains(firm.Id) select firm
public GetAllFirms ( ) : IEnumerable
return IEnumerable

GetFirm() public method

Gets the latest revision of a specific firm
public GetFirm ( System.Guid firmCode ) : Firm
firmCode System.Guid
return Firm