/// <summary> /// Blocks a customer by changing Customer_status to false /// </summary> /// <param name="id"></param> /// <returns></returns> public int BlockCustomer(int id) { var customer = _db.FindCustomer(id); customer.Customer_status = false; return(_db.EditCustomer(customer)); }