예제 #1
0
        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));
                }
            }
        }
예제 #2
0
        //Home
        public string ThongBaoLoi()
        {
            FileKhachHangDTO file = new FileKhachHangDTO();

            return(home.LayFileDanhSachKhachHang(file.TenDoan, file.TenTruongDoan, file.ThoiGianNhan, file.ThoiGianTra, file.Files));
        }