File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
RZ.Server/RZ.Server/Controllers Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -66,13 +66,17 @@ public ActionResult Approve(IFormCollection formcollection)
66
66
string sApp = formcollection [ "ApplicationType" ] . ToString ( ) ;
67
67
if ( ! string . IsNullOrEmpty ( sApp ) )
68
68
{
69
- _hubContext . Clients . All . SendAsync ( "Append" , "<li class=\" list-group-item list-group-item-warning\" >%tt% - SW Approved: " + sApp + "</li>" ) ;
70
- _hubContext . Clients . All . SendAsync ( "Reload" ) ;
71
- Base . SendNotification ( "Software Approved:" + sApp , "" ) ;
72
- Base . Approve ( sApp ) ;
73
- Base . GetCatalog ( "" , true ) ;
74
69
75
- _hubContext . Clients . All . SendAsync ( "Reload" ) ;
70
+ bool bResult = Base . Approve ( sApp ) ;
71
+ if ( bResult )
72
+ {
73
+ _hubContext . Clients . All . SendAsync ( "Append" , "<li class=\" list-group-item list-group-item-warning\" >%tt% - SW Approved: " + sApp + "</li>" ) ;
74
+ _hubContext . Clients . All . SendAsync ( "Reload" ) ;
75
+ Base . SendNotification ( "Software Approved:" + sApp , "" ) ;
76
+ Base . GetCatalog ( "" , true ) ;
77
+ _hubContext . Clients . All . SendAsync ( "Reload" ) ;
78
+ }
79
+
76
80
}
77
81
}
78
82
You can’t perform that action at this time.
0 commit comments