Esempio n. 1
0
        public async Task <ActionResult> Create([Bind(Include = "Id,Phone,UserName,Content,CreateDate,LastModifyDate,IsDelete,Creater,LastModifier")] Comment comment)
        {
            if (ModelState.IsValid)
            {
                InitAuthor(comment);
                await _commentDal.InsertAsync(comment);

                return(RedirectToAction("Successful"));
            }
            return(View(comment));
        }