public IActionResult ExportExcel(HospitalListVM vm) { vm.SearcherMode = vm.Ids != null && vm.Ids.Count > 0 ? ListVMSearchModeEnum.CheckExport : ListVMSearchModeEnum.Export; var data = vm.GenerateExcel(); return(File(data, "application/vnd.ms-excel", $"Export_Hospital_{DateTime.Now.ToString("yyyy-MM-dd")}.xls")); }
public string Search(HospitalListVM vm) { if (ModelState.IsValid) { return(vm.GetJson(false)); } else { return(vm.GetError()); } }
public IActionResult ExportExcel(HospitalListVM vm) { return(vm.GetExportData()); }
public string Search(HospitalListVM vm) { return(vm.GetJson(false)); }