protected override IList <LocalizationGridModel> FetchData(GridSettings gridSettings)
        {
            var query = _repository.Query();

            Random rand       = new Random((int)DateTime.Now.Ticks);
            var    gridResult = JqGridHelper.GetGridResult(query, delegate(string fieldName)
            {
                return(fieldName);
            },
                                                           delegate(Localization model)
            {
                return(new LocalizationGridModel()
                {
                    Id = rand.Next(int.MaxValue),
                    //LocalizationId = model.Id,
                    Key = model.Key,
                    Value = model.Value,
                    JavaScript = model.JavaScript,
                    Language = model.Language
                });
            }
                                                           , gridSettings);

            return(gridResult);
        }