public IActionResult EditResolution(EditResolutionViewModel UpdatedResolution)
        {
            if (ModelState.IsValid)
            {
                Resolution LegacyResolution = _context.GetResolutionById(UpdatedResolution.ResolutionId);

                LegacyResolution.Title                  = UpdatedResolution.Title;
                LegacyResolution.Description            = UpdatedResolution.Description;
                LegacyResolution.ActiveToVoteBeforeDate = UpdatedResolution.ActiveToVoteBeforeDate;

                LegacyResolution.Date = DateTime.UtcNow.Date;

                _context.SaveChanges();

                return(Ok());
            }
            else
            {
                ModelState.AddModelError("Overall", "Niepoprawnie wprowadzone dane uchwały");
                return(BadRequest(ModelState));
            }
        }