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