예제 #1
0
        public async Task <IHttpActionResult> Delete(long id)
        {
            // Decode the Claims for get all values
            var result = await accountbusiness.Delete(id);

            if (result)
            {
                return(Content(HttpStatusCode.OK, result));
            }
            return(Content(HttpStatusCode.InternalServerError, "Error"));
        }
예제 #2
0
 public void DeleteAccount(int ID)
 {
     accs.Delete(ID);
 }