public IHttpActionResult PostAccount_Holder(Account_Holder account_Holder) { //if (!ModelState.IsValid) //{ // return BadRequest(ModelState); //} db.block_account(account_Holder.customer_id); //try //{ // db.SaveChanges(); //} //catch (DbUpdateException) //{ // if (Account_HolderExists(account_Holder.account_no)) // { // return Conflict(); // } // else // { // throw; // } //} return(CreatedAtRoute("DefaultApi", new { id = account_Holder.account_no }, account_Holder)); }