public IHttpActionResult IsPushAllowed([FromUri]string sessionKey, SetPushAllowedRequest request) { var pushService = new PushService(); var ok = pushService.SetPushAllowed(sessionKey, request.IsAllowed); if (ok) return Ok(); return Unauthorized(); }
public IHttpActionResult IsPushAllowed([FromUri] string sessionKey, SetPushAllowedRequest request) { var pushService = new PushService(); var ok = pushService.SetPushAllowed(sessionKey, request.IsAllowed); if (ok) { return(Ok()); } return(Unauthorized()); }