コード例 #1
0
 public ActionResult Update(int makhach, string fullname, string address, string phone, string email)
 {
     if (khService.Update(new OKhachHang
     {
         DiaChi = address,
         TenKhach = fullname,
         DienThoai = phone,
         Email = email,
         MaKhach = makhach
     }))
     {
         return(Json(new { Success = true, Message = "Sửa thông tin thành công!" }));
     }
     return(Json(new { Success = false, Message = "Sửa thông tin thất bại!" }));
 }