예제 #1
0
        public IActionResult Delete(int id)
        {
            var delete = new UserAccountPhoto {
                ID = id
            };
            var data = _useraccountphotoBusiness.DeleteUserAccountPhoto(delete);

            return(View("Index"));
        }
예제 #2
0
        public ActionResult Delete(UserAccountPhoto UserAccountPhoto)
        {
            try
            {
                _useraccountphotoBusiness.DeleteUserAccountPhoto(UserAccountPhoto);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }