public ActionResult CapNhatThongTin(FormCollection form) { string maSo = Session["maSo"].ToString(); string hoTen = form["txtHoten"]; DateTime ngay = Convert.ToDateTime(form["txtNgaysinh"]); string ngaySinh = ngay.ToString("dd/MM/yyyy"); HttpPostedFileBase hinhAnh = Request.Files["fileHinhAnh"]; string hinhcu = form["hinhCu"]; if (KiemTra_FileAnh(hinhAnh) == true) { modelDefault.CapNhatNguoiDung(maSo, hoTen, ngaySinh, hinhAnh.FileName); } else { modelDefault.CapNhatNguoiDung(maSo, hoTen, ngaySinh, hinhcu); } return(RedirectToAction("Index", "Admin")); }