public JsonResult<ResponseViewModel<bool>> PostGameFeatureDetail(GameFeatureDetailViewModel gameFeatureDetail)
 {
     var response =
         ServiceExecutor.Execute(
             () => _gameFeatureManagementService.PutGameFeatureDetail(gameFeatureDetail));
     return Json(response);
 }
 public bool PutGameFeatureDetails(GameFeatureDetailViewModel[] gameFeatureDetails)
 {
     gameFeatureDetails.ToList().ForEach(InsertGameFeatureDetail);
     RepositoryFactory.Context.SaveChanges();
     return true;
 }
 private void InsertGameFeatureDetail(GameFeatureDetailViewModel gameFeatureDetail)
 {
     var entity =
        RepositoryFactory.Context.GameFeatureDetailLanguages.FirstOrDefault(
            x => x.Id == gameFeatureDetail.Id && x.Language.Id == gameFeatureDetail.LanguageId);
     if (entity == null)
         throw new Exception(ThrowMessage.GameFeatureDetailNotExists.ToString());
     entity.GameFeatureDetailName = gameFeatureDetail.GameFeatureDetailName;
 }
 public bool PutGameFeatureDetail(GameFeatureDetailViewModel gameFeatureDetail)
 {
     InsertGameFeatureDetail(gameFeatureDetail);
     RepositoryFactory.Context.SaveChanges();
     return true;
 }