public async Task <IEnumerable <HDD> > PostHDD([FromBody] HDD value) { if (User.Identity.IsAuthenticated) { return(await _componentService.AddHDD(new AddHddRequest(value))); } else { throw new UnauthorizedAccessException("Only admin can make changes. Have a nice day and f**k off ;)"); } }