public async Task <JsonResult> InsertOrUpdateCommunity(Community community) { if (community.Id.HasValue && community.Id == 0) { await _communityService.Insert(community); } else { await _communityService.Update(community); } return(Success()); }