public ActionResult Create(Guid KnowledgeId, KnowledgeReply item) { _iKnowledgeReplyService.Save(null, item); _unitOfWork.Commit(); return(RedirectToAction("Index", new { KnowledgeId })); }
public ActionResult Create(string entity) { var item = (KnowledgeReply)JsonConvert.DeserializeObject(entity, typeof(KnowledgeReply)); _iKnowledgeReplyService.Save(null, item); _unitOfWork.Commit(); return(Content("True")); }