public Response<List<RespGetRecentEvents>> GetRecentEvents() { var objresponse = new Response<List<RespGetRecentEvents>>(); var objlist = new List<RespGetRecentEvents>(); var objmethod = new UnseenTalentsMethod(); try { objlist = objmethod.GetRecentEvents(); objresponse.Create(true, 0, "Events for admin", objlist); } catch (Exception ex) { objresponse.Create(false, -1, "Events for admin", objlist); } return objresponse; }