public IActionResult Update([FromHeaderAttribute] string Authorization, string id, Subscribe subscribeIn) { if (isAuthorized(Authorization)) { var subscribe = _subscribeService.Get(id); if (subscribe == null) { return(NotFound()); } _subscribeService.Update(id, subscribeIn); return(NoContent()); } else { return(Unauthorized()); } }