public static List <PanelWiseStatus> PanelWiseStatus(FilterData Obj) { using (var Context = new BSSDBEntities()) { List <PanelWiseStatus> PanelWiseStatus = null; var ReqData = Context.sp_PanelWiseStatus(Obj.DealerID, Obj.AccountId, Obj.Month, Obj.Year).ToList(); if (ReqData.Count != 0) { PanelWiseStatus = ReqData.Select(x => new PanelWiseStatus { Model = x.Model, PanelReplaced = x.PanelReplaced, Total = x.Total }).ToList(); return(PanelWiseStatus); } else { return(PanelWiseStatus); } } }