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