public ActionResult ClosePreviousArchiveTasks(Guid idPreservationTask, int selectedTaskYear) { return(ActionResultHelper.TryCatchWithLogger(() => { PreservationService service = new PreservationService(); PreservationTask preservationTask = service.GetPreservationTask(idPreservationTask); service.CreateClosePreviousPreservationTask(preservationTask, selectedTaskYear); return RedirectToAction("ArchivePreservationTask", new { id = preservationTask.Archive.IdArchive }); }, _loggerService)); }