public IEnumerable <GET_TASK_DETAILS_Result> GetTaskDetails() { using (TaskManagerEntities db = new TaskManagerEntities()) { var VTaskDetails = db.GET_TASK_DETAILS().ToList(); return(VTaskDetails); } }