public IHttpActionResult LayFileDanhSachKhachHang(dynamic dynamic) { FileKhachHangDTO file = JsonConvert.DeserializeObject <FileKhachHangDTO>(dynamic.ToString()); if (file == null) { return(BadRequest()); } using (HomeBusiness homeBusiness = new HomeBusiness()) { string result = homeBusiness.LayFileDanhSachKhachHang(file.TenDoan, file.TenTruongDoan, file.ThoiGianNhan, file.ThoiGianTra, file.Files); if (result.Equals("ok")) { return(Ok("Lưu file thành công !")); } else { return(BadRequest(result)); } } }
//Home public string ThongBaoLoi() { FileKhachHangDTO file = new FileKhachHangDTO(); return(home.LayFileDanhSachKhachHang(file.TenDoan, file.TenTruongDoan, file.ThoiGianNhan, file.ThoiGianTra, file.Files)); }