public List <object> ViewHistory(dynamic obj) { string name = obj.name; string clientId = obj.clientId; DateTime fromDate = obj.fromDate; DateTime endDate = obj.endDate; return(ExamBLL.ViewHistory(name, clientId, fromDate, endDate)); }