47 lines
1.4 KiB
C#
47 lines
1.4 KiB
C#
using Sarand.BusinessMgr.Net.Core.Web.App;
|
|
using Sarand.BusinessMgr.Net.Standard.Base.Bus.Control;
|
|
|
|
namespace Sarand.BusinessMgr.Web.Control.Models
|
|
{
|
|
//=======================================================================
|
|
public class Model_Home : SbmModel_Control
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Construction.
|
|
public Model_Home(SbmLocaliser localiser) :
|
|
base(localiser)
|
|
{
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Home page statictics.
|
|
|
|
public long GetUserAccountCount()
|
|
{
|
|
SbmcUserAccount.Params prmUserAccount = new SbmcUserAccount.Params();
|
|
prmUserAccount.StatusCat = SbmcUserAccount.StatusCat.NotDeleted;
|
|
return ControlAccountMgr.GetUserAccountCount(prmUserAccount);
|
|
|
|
}
|
|
|
|
public long GetOwnerCount()
|
|
{
|
|
SbmcOwner.Params prmOwner = new SbmcOwner.Params();
|
|
prmOwner.StatusCat = SbmcOwner.StatusCat.NotDeleted;
|
|
return ControlInstanceMgr.GetOwnerCount(prmOwner);
|
|
|
|
}
|
|
|
|
public long GetRepositoryCount()
|
|
{
|
|
SbmcRepository.Params prmRepository = new SbmcRepository.Params();
|
|
prmRepository.StatusCat = SbmcRepository.StatusCat.NotDeleted;
|
|
return ControlInstanceMgr.GetRepositoryCount(prmRepository);
|
|
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|