public bool SaveSupervisionPlanModality(SPSaveViewModel dataSave, string role) { var response = false; var listSP = new List <TableSupervisionPlanModalityViewModel>(); var supervisionPlan = new TableSupervisionPlanModalityViewModel(); try { response = true; _spAdministrationService.SaveSupervisionPlanModality(new TableSupervisionPlanModalityViewModel { Role = role, OperationId = _spAdministrationService.GetOperationIdByOperationNumber(dataSave.OperationNumber), ModalityId = Convert.ToInt32(dataSave.Value) }); } catch (Exception) { response = false; throw; } return(response); }