public ActionResult Search() { var model = new ChatTemplateViewModels(); try { var datas = _factory.GetListChattingTemplate(CurrentUser.ListOrganizationId, false, null, null); model.ListItemArtist = datas.Where(x => x.ChatTemplateType == (int)Commons.EChatTemplate.Artiste).ToList(); model.ListItemCus = datas.Where(x => x.ChatTemplateType == (int)Commons.EChatTemplate.Customer).ToList(); } catch (Exception ex) { NSLog.Logger.Error("GetListChatting_error", ex); return(new HttpStatusCodeResult(400, ex.Message)); } return(PartialView("_ListData", model)); }
// GET: SChattingTemplate public ActionResult Index() { var model = new ChatTemplateViewModels(); return(View(model)); }