public ActionResult Insert() { var model = new T(); if (TryUpdateModel(model)) { var data = Mapper.Map <T>(model); _service.Add(data); } return(IndexAjax()); }