public ActionResult Licenca(UpdateLicencaViewModel model)
 {
     if (ModelState.IsValid)
     {
         var config = _serverConfigRepo.GetAllConfig();
         config.PrecoLicenca = model.PrecoLicenca;
         _serverConfigRepo.Update(config);
     }
     return(View(model));
 }
        public ActionResult Licenca()
        {
            var precolicenca = _serverConfigRepo.GetLicencePrice();
            var model        = new UpdateLicencaViewModel
            {
                PrecoLicenca = precolicenca
            };

            return(View(model));
        }