public bool ChangeStatusNotImplemented(Guid idTask, Guid idReason, string comment) { try { var myTask = _taskCampaignBusiness.GetTaskByIdForRegisterPage(idTask, ApplicationUserCurrent.AccountId); var status = _statusTaskBusiness.GeStatusTaskByName(CTask.StatusNotImplemented); myTask.IdTaskNoImplementedReason = idReason; myTask.IdStatusTask = status.Id; myTask.CommentTaskNoImplemented = comment; myTask.DateModification = DateTime.Now; _taskCampaignBusiness.ModifyTask(myTask); } catch (Exception exception) { _logger.LogError(exception.Message); return(false); } return(true); }