List<Tempclass> objList = new List<Tempclass>();
var
objValues = DbContext.Values.Where(val => (val.Id == Id) &&
(val.IsObsolute == (Boolean?)false));
if
(objValues != null && objValues.Any())
{
objList = (from Value res in objValues
select new Tempclass()
{
Id = res.Id,
Name = res.Name,
Age = res.Age,
Sex = res.Sex
}).ToList();
}
return objList;
No comments:
Post a Comment