public async Task <ActionResult> Delete(Guid id) { // Validation if (id == null) { return(BadRequest()); } AccountBLL bll = new AccountBLL(this.unitOfWork); await bll.DeleteAccountById(id); return(Ok()); }