//Change the status of a intervention
        public void ChangeStatus(string intId, string oldStatusText, string newStatusNumber)
        {
            intervention.InterventionId = Convert.ToInt32(intId);
            var intRepo = new InterventionsRepository(context);

            intervention = intRepo.GetInterventionWithInterventionId(intervention.InterventionId);
            var oldStatus = (int)Enum.Parse(typeof(Status), oldStatusText);
            var newStatus = Convert.ToInt32(newStatusNumber);

            validateUserRole();
            validateUserDistrict();
            validateHoursCost();
            validateOldStatus(oldStatus);
            var repo = new InterventionsRepository(context);
            var row  = repo.UpdateInterventionStatus(intervention.InterventionId, oldStatus, newStatus);
        }