Files
BusinessMgr-2019/SaBusinessMgrCoreWebControl/Control/Models/Model_Home.cs
T

48 lines
1.5 KiB
C#

using Sarand.BusinessMgr.Net.Core.Web.App;
using Sarand.BusinessMgr.Net.Standard.Base.Bus.Control;
using Sarand.BusinessMgr.Web.Control.Components;
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);
}
//-------------------------------------------------------------------
}
//=======================================================================
}