Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public async Task <ActionResult> DeleteAsync(int sID) { int accountId = JWTUtility.GetIdFromRequestHeaders(Request.Headers); if (accountId == -1) { return(BadRequest()); } if (!await _songService.CanModifyAsync(accountId, sID)) { return(Unauthorized()); } await _songService.DeleteAsync(sID, accountId); return(Ok()); }