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