public string RecentChatList(string param = "") { ChatCustom chatcustom = JsonConvert.DeserializeObject <ChatCustom>(param); chatcustom = _service.ChatRepository.RecentChats(chatcustom); return(JsonConvert.SerializeObject(chatcustom)); }
public ActionResult RecentChat() { CommonCls commonCls = new CommonCls(); if (commonCls.getUserIdFromSession() == 0) { return(Redirect("/Home/Login")); } else { ChatCustom chatCustom = new ChatCustom(); chatCustom.LstUsers = _service.TrainerRepository.bindTrainers(); chatCustom.lstemp = _service.EmployeeRepository.bindEmployees(); return(View(chatCustom)); } }