public List <CategoryMasterVM> GetEntityList() { var result = dB_SPADevelopementEntities.Categories.Where(item => item.IsActive == 1).ToList(); var destination = new ConvertListSourceToDestination <Category, CategoryMasterVM>().ConvertSourceToDestination(result); return(destination); }
public IEnumerable <CasteMasterVM> GetEntities() { var result = dB_SPADevelopementEntities.CasteMasters.Where(item => item.IsActive == 1).ToList(); var destination = new ConvertListSourceToDestination <CasteMaster, CasteMasterVM>().ConvertSourceToDestination(result); return(destination); }
public List <ClassMasterVm> GetEntityList() { var result = dB_SPADevelopementEntities.Classes.Where(item => item.IsActive == 1).ToList(); var destionationList = new ConvertListSourceToDestination <Core.Class, ClassMasterVm>().ConvertSourceToDestination(result); return(destionationList); }
public List <GenderMasterVM> GetEntityList() { using (dB_SPADevelopementEntities) { var result = dB_SPADevelopementEntities.GenderMasters.Where(item => item.IsActive == 1).ToList(); var destination = new ConvertListSourceToDestination <GenderMaster, GenderMasterVM>().ConvertSourceToDestination(result); return(destination); } }
public IEnumerable <BloodGroupVM> GetEntities() { using (dB_SPADevelopementEntities) { var result = dB_SPADevelopementEntities.BloodGroups.Where(x => x.IsActive == 1).ToList(); var destination = new ConvertListSourceToDestination <BloodGroup, BloodGroupVM>().ConvertSourceToDestination(result); return(destination); } }