public ContentResult RacunEditBla(long? racunGlavaId, string racunGlavaJson, string racunStavkaCollectionJson)
        {
            DataAccessAdapterBase adapter = Helper.GetDataAccessAdapterFactory(User.Identity.Name);

            try
            {
                adapter.StartTransaction(System.Data.IsolationLevel.Serializable, "RacunEdit");

                RacunViewModel racunViewModel = new RacunViewModel(adapter, racunGlavaId);
                racunViewModel.UpdateModelFromJson(adapter, racunGlavaJson, racunStavkaCollectionJson);

                racunViewModel.Save(adapter);

                adapter.Commit();
            }
            catch (Exception)
            {
                adapter.Rollback();
                throw;
            }
            finally
            {
                adapter.Dispose();
            }

            ContentResult toReturn = new ContentResult { Content = "jipijaje maderfaker", ContentType = "text/plain" };
            return toReturn;
        }
        public ActionResult RacunEdit(long? racunGlavaId)
        {
            DataAccessAdapterBase adapter = Helper.GetDataAccessAdapterFactory(User.Identity.Name);
            using (adapter)
            {
                RacunViewModel racunViewModel = new RacunViewModel(adapter, racunGlavaId);
                racunViewModel.LoadViewSpecificData(adapter);

                return View(racunViewModel);
            }
        }