public JsonResult Save([Bind(Include = "Id, Name, Description, ApplicationId, IsActive")] ModuleModel module, bool isInsert) { if (isInsert) { module.SetCreateProperties(LoginInformation.UserInformation.Id); module.Id = _moduleService.Insert(module); } else { module.SetUpdateProperties(LoginInformation.UserInformation.Id); _moduleService.Update(module); } return(new JsonResult { Data = module }); }