SharedModel.cs 667 Bytes
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AIAHTML5.ADMIN.API.Entity;
namespace AIAHTML5.ADMIN.API.Models
{
    public class AccountTypeModel
    {
        public static List<AccountType> GetAccountTypeList(AIADatabaseV5Entities dbContext, int Id)
        {
            var accountTypeEntity = dbContext.usp_GetAccountTypeList(Id).ToList();
            List<AccountType> AccountTypelist = accountTypeEntity.Select(l => new AccountType() { Id = l.Id, Title = l.Title }).ToList();
            //AccountTypelist.Insert(0, new AccountType { Id = 0, Title = "All" });
            return AccountTypelist;
        }
    }
}