public void AssignDoctorToRule(Models.RulesetBindingModel model) { try { _ruleService.AssignDoctorToRule(model.IdRule, model.IdDoctor); } catch (Exception e) { string message = e.Message; } }