public ActionResult Add(ContentType contentType) { contentTypeRepository.Insert(contentType); if (UnitOfWork.Save() != 1) { return(Content("{success:false}")); } return(Content("{success:true}")); }