Beispiel #1
0
        public ActionResult Create(string entity)
        {
            var item = (ProjectTaskReply)JsonConvert.DeserializeObject(entity, typeof(ProjectTaskReply));

            _iProjectTaskReplyService.Save(null, item);
            _unitOfWork.Commit();
            return(Content("True"));
        }
Beispiel #2
0
 public ActionResult Create(Guid?id, Guid projectTaskId, ProjectTaskReply collection)
 {
     _iProjectTaskReplyService.Save(id, collection);
     _unitOfWork.Commit();
     return(RedirectToAction("Index", new { projectTaskId }));
 }