public ActionResult ListPremiumPackages()
        {
            var listaUsuarios = _readOnlyRepository.GetAll<PremiumPackage>().ToList();
            //List<Account> listaUsuarios = _readOnlyRepository.Query<Account>(x => x.Email == "*").ToList();
            var lista = new List<PremiumPackageModel>();

            for (var i = 0; i < listaUsuarios.Count; i++)
            {

                var model = new PremiumPackageModel();
                var user = listaUsuarios.ElementAt(i);
                model.Name = user.Name;
                model.Description = user.Description;
                model.Days = user.Days;
                model.Space = user.Space;
                model.Available = user.Available;
                lista.Add(model);
            }
            //var listOfContent = Builder<ListUsersModel>.CreateListOfSize(10).Build().ToList();
            return View(lista);
        }
 public ActionResult ListPremiumPackages(PremiumPackageModel model)
 {
     return RedirectToAction("ListUsers", "Administrator");
 }
 public ActionResult PremiumPackage(PremiumPackageModel model)
 {
     if (model.Name.Length >= 6)
     {
         if (model.Description.Length >= 25)
         {
             var package = Mapper.Map<PremiumPackageModel, PremiumPackage>(model);
             package.Available = true;
             _writeOnlyRepository.Create(package);
             Success("El paquete: "+model.Name+" ha sido creado. ");
             return RedirectToAction("ListUsers", "Administrator");
         }
     }
     Error("No se pudo crear el paquete.");
     return RedirectToAction("ListUsers", "Administrator");
 }